package GUI;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JTextPane;
import java.awt.event.InputMethodListener;
import java.awt.event.InputMethodEvent;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JSlider;
import java.awt.List;
import javax.swing.JTable;


public class ComplaintDisplay extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ComplaintDisplay frame = new ComplaintDisplay();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ComplaintDisplay() {
		setBackground(Color.ORANGE);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 655, 324);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		
		
		JTextPane textPaneComplain = new JTextPane();
		
		JLabel lblCustomerId = new JLabel("Customer ID");
		
		JLabel lblCustomerFirstName = new JLabel("Customer First Name");
		
		JLabel lblCutomerLastName = new JLabel("Cutomer Last Name");
		
		JLabel lblDateAndTime = new JLabel("Date and Time");
		
		JButton btnClose = new JButton("Close");
		
		JButton btnComponstate = new JButton("Componstate");
		
		JLabel inserIdLabel = new JLabel("New label");
		inserIdLabel.setBackground(Color.CYAN);
		
		JLabel insertFirstNLabel = new JLabel("New label");
		
		JLabel insertLastNLabel = new JLabel("New label");
		
		JLabel lblInsertdatelabel = new JLabel("insertDateLabel");
		
		textField = new JTextField();
		textField.setColumns(10);
	
	
		GroupLayout gl_contentPane = new GroupLayout(contentPane);
		gl_contentPane.setHorizontalGroup(
			gl_contentPane.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_contentPane.createSequentialGroup()
							.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
								.addComponent(lblCustomerId)
								.addComponent(lblCustomerFirstName)
								.addComponent(lblDateAndTime)
								.addComponent(lblCutomerLastName))
							.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
								.addGroup(gl_contentPane.createSequentialGroup()
									.addGap(63)
									.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
										.addGroup(gl_contentPane.createSequentialGroup()
											.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
												.addComponent(inserIdLabel, GroupLayout.PREFERRED_SIZE, 62, GroupLayout.PREFERRED_SIZE)
												.addComponent(insertFirstNLabel)
												.addComponent(lblInsertdatelabel))
											.addPreferredGap(ComponentPlacement.RELATED, 86, Short.MAX_VALUE)
											.addComponent(textPaneComplain, GroupLayout.PREFERRED_SIZE, 268, GroupLayout.PREFERRED_SIZE)
											.addGap(27))
										.addGroup(gl_contentPane.createSequentialGroup()
											.addComponent(insertLastNLabel)
											.addPreferredGap(ComponentPlacement.RELATED, 193, Short.MAX_VALUE)
											.addComponent(btnClose, GroupLayout.PREFERRED_SIZE, 79, GroupLayout.PREFERRED_SIZE)
											.addGap(138))))
								.addGroup(Alignment.TRAILING, gl_contentPane.createSequentialGroup()
									.addPreferredGap(ComponentPlacement.RELATED)
									.addComponent(textField, GroupLayout.PREFERRED_SIZE, 166, GroupLayout.PREFERRED_SIZE)
									.addGap(90))))
						.addGroup(Alignment.TRAILING, gl_contentPane.createSequentialGroup()
							.addComponent(btnComponstate)
							.addGap(131))))
		);
		gl_contentPane.setVerticalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addGap(29)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_contentPane.createSequentialGroup()
							.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
								.addGroup(gl_contentPane.createSequentialGroup()
									.addGap(38)
									.addComponent(lblCustomerFirstName)
									.addGap(18)
									.addComponent(lblCutomerLastName))
								.addGroup(gl_contentPane.createSequentialGroup()
									.addGap(6)
									.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
										.addComponent(lblCustomerId)
										.addComponent(inserIdLabel))
									.addGap(18)
									.addComponent(insertFirstNLabel)
									.addGap(18)
									.addComponent(insertLastNLabel)))
							.addGap(20)
							.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
								.addComponent(lblDateAndTime)
								.addGroup(gl_contentPane.createSequentialGroup()
									.addGap(9)
									.addComponent(lblInsertdatelabel))))
						.addGroup(gl_contentPane.createSequentialGroup()
							.addComponent(textPaneComplain, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)
							.addGap(28)
							.addComponent(btnClose)))
					.addGap(18)
					.addComponent(textField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
					.addComponent(btnComponstate)
					.addGap(23))
		);
		contentPane.setLayout(gl_contentPane);
	}
}
